home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-04 | 1.1 KB | 31 lines | [TEXT/KAHL] |
- // this routine is the same for both the packed and visual tree nodes
-
- // if the node has changed position or size, erase it and
- // note that it must be redrawn
- if (!EqualRect (&OldNodeRect, &newNodeRect))
- {
- if (!EqualRect (&emptyRect, &OldNodeRect))
- EraseNode (FALSE);
- this->needsDraw = eraseKidJoins = TRUE;
- }
- else // if the node's children have moved, redraw it too
- if (Just != kJustCenter)
- {
- if ((Orient == kBottomUp) || (Orient == kTopDown))
- {
- if (OldGChildRect.right - OldGChildRect.left !=
- newGChildRect.right - newGChildRect.left)
- this->needsDraw = eraseKidJoins = TRUE;
- }
- else
- {
- if (OldGChildRect.bottom - OldGChildRect.top !=
- newGChildRect.bottom - newGChildRect.top)
- this->needsDraw = eraseKidJoins = TRUE;
- }
- }
-
- if (eraseKidJoins)
- for (i = 1; i <= this->numItems; i++)
- EraseJoin (this, (CPPVisualTreeNode *)NthChild(i));
-